package com.example.demo.dao;

import com.example.demo.pojo.Member;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface MemberDao {
    @Select("select * from t_member where memberPhone=#{memberPhone} and password=#{password}")
    Member userLogin(Member member);
    @Select("select * from t_member where memberPhone=#{memberPhone}")
    Member findMemberByPhone(Member member);
    @Insert("insert into t_member (memberPhone,password,username,email) values(#{memberPhone},#{password},#{username},#{email})")
    int userReg(Member member);
}
